<?php echo $this->render("header.phtml"); ?>
<label class="title">Member control - Reply messages</label>
<div class="horiz_sep">&nbsp;</div>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
	<td>
	<form action="<?= $this->baseUrl; ?>/<?= $this->contextPath; ?>/send-message" method="post">
	<input type="hidden" name="pm_to" value="<?= $this->message->pm_from; ?>"/>
	<input type="hidden" name="pm_com" value="<?= $this->message->pm_com; ?>"/>
		<table cellpadding="5" cellspacing="0" width="100%" border="0">
			<tr>
		    	<th width="15%" align="left">To: </th>
		    	<td><input type="text" name="pm_to" value="<?= $this->message->name; ?>" style="width:50%;" disabled="disabled"/></td>
		  	</tr>
		  	<tr>
		    	<th align="left">Subject: <font color="red">(*)</font></th>
		    	<td><input type="text" name="pm_title" value="<?= $this->message->pm_title; ?>" style="width:100%;"/></td>
		  	</tr>
		  	<tr>
				<td colspan="2">
					<table cellpadding="0" cellspacing="0" border="0" width="100%">
						<tr>
							<td>
								<b>Content: <font color="red">(*)</font></b>
							</td>
						</tr>
						<tr>
							<td>
							<textarea name="message_content" rows="5" style="width:100%;"></textarea>
								<script src="<?= $this->baseUrl ?>/public/scripts/fckeditor/fckeditor.js" type="text/javascript"></script>	
								<script type="text/javascript">
									<!--
									// Automatically calculates the editor base path based on the _samples directory.
									// This is usefull only for these samples. A real application should use something like this:
									// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
									var sBasePath = '<?= $this->baseUrl ?>/public/scripts/fckeditor/' ;
									var oFCKeditor = new FCKeditor( 'message_content' ) ;
									oFCKeditor.BasePath	= sBasePath ;
									oFCKeditor.ToolbarSet = 'Member';
									oFCKeditor.Height	= 300 ;
									oFCKeditor.ReplaceTextarea() ;
									//-->
								</script>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="submit" name="sent" value="Sent"/>
				</td>
			</tr>
		</table>
	</form>
	</td>
</tr>  	
</table>
<?php echo $this->render("footer.phtml"); ?>